var socket = null;

function init() {
    console.log('YAAAA');
    //socket = io.connect("http://" + location.host);
    socket = io.connect("http://127.0.0.1:8080");
	socket.emit('identification', {login : document.getElementById('login').value});
	socket.on('update', function (data) {
		document.getElementById("platforms").innerHTML = data.message;
	  });
}
